export interface ReqResponseData {
  code: number;
  message: string;
  ok: boolean;
}

export interface GetListResponseRecords {
  id?: number;
  createTime: string;
  updateTime: string;
  roleName: number;
  remark: null;
}
export interface GetListResponseData extends ReqResponseData {
  data: {
    records: GetListResponseRecords[];
    total: string;
  };
}

// 权限菜单type
export interface MunuData {
  id: number;
  createTime: string;
  updateTime: string;
  pid: number;
  name: string;
  code: null;
  toCode: null;
  type: number;
  status: null;
  level: number;
  children?: MenuList;
  select: boolean;
}
export type MenuList = MunuData[];
//菜单权限与按钮权限数据的ts类型
export interface MenuResponseData extends ReqResponseData {
  data: MenuList;
}
